package com.beta.dto.admin;

import com.beta.em.admins.AdminRolesType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by lichao on 2017/1/3.
 */
@Getter
@Setter
public class AdminDto implements Serializable {

    private static final long serialVersionUID = -195802238424937832L;

    private Integer id;

    private String username;

    private String email;

    private String cityCode;

    private String cityName;

    private String roleName;

    private Date createdAt;

    private String encryptedPassword;

    private Integer roleId;

    public String getRoleName() {
        return AdminRolesType.getCnValue(this.roleName);
    }
}
